package com.jeff.tianti.cms.service;

import com.jeff.tianti.cms.entity.Leader;
import com.jeff.tianti.cms.dao.LeaderDao;
import com.jeff.tianti.cms.dto.LeaderQueryDTO;
import com.jeff.tianti.common.service.CommonService;
import com.jeff.tianti.common.entity.PageModel;
import org.springframework.stereotype.Service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
/**
 * @author NOW_GO
 * @desc LeaderService类 
 * @date 2019-07-12
 */
@Service
public class LeaderService extends CommonService<Leader,String >  {

    @Autowired
    private LeaderDao leaderDao;

    @Autowired
    public void setLeaderDao(LeaderDao leaderDao){
      super.setCommonDao(leaderDao);
    }

    public PageModel<Leader> queryLeaderPage(LeaderQueryDTO leaderQueryDTO){
           return this.leaderDao.queryLeaderPage(leaderQueryDTO);
    }

    public List<Leader> queryLeaderList(LeaderQueryDTO leaderQueryDTO){
           return this.leaderDao.queryLeaderList(leaderQueryDTO);
    }


}